	<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
	<%@ page import="com.lz.form.*"%>
	<%@ page import="java.util.List"%>
<html>
<head>
<jsp:useBean id="MESSAGE" class="java.lang.String" scope="request"/>
<title>Bookstore</title>
<script>

</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="/bookstore/default.css" />
</head>
<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (all.psd) -->
<table id="Table_01" width="718"  border="0" cellpadding="0" cellspacing="0" align=center>
	<tr>
		<td colspan="3">
		<img src="/bookstore/images/all_01.jpg" width="718" height="167" alt="">	
		</td>
	</tr>
	<tr>
		<td colspan="3">
			<div id="menu" align=center>	
					<jsp:include page="adminmenu.jsp"/>
		  </div>	
		</td>
	</tr>
	<tr>
		<td colspan="3">
		<div id="content">	
<form method=post name=frm action="/bookstore/itemcategory.do">
<input type=hidden name=crud value="queryall"/>

<p class="pheading1">Query Result Bookcategory</p>
<%	List list=(List)request.getAttribute("list"); %>
<table class="contentable" cellspacing="5">
<tr><td class="pheading2" style="padding-left:0px">#</td>
<td class="pheading2" style="padding-left:0px">Categoryid</td>
<td class="pheading2" style="padding-left:0px">Categoryname</td></tr>
<%for(int ctr=0;ctr<list.size();ctr++){
ItemCategoryDTO dto=(ItemCategoryDTO)list.get(ctr); %><tr><td><input name="radiobtn" type=radio onclick="document.frm.categoryid.value='<%=dto.getCategoryid()%>';"/></td>
<td><%=dto.getCategoryid()%></td>
<td><%=dto.getCategoryname()%></td></tr>
<%}//eof for loop%>
<input type=hidden name=categoryid value=''/>
</table>

<div class="btndiv" style="padding-left:100px">
<table>
<tr><td><input type=button value="Delete" onclick="document.frm.crud.value='delete';document.frm.submit();"/>

<input type=button value="Update" onclick="document.frm.crud.value='query';document.frm.submit();"/></td></tr>

</table>
</div>
</form>

</div>
		</td>
	</tr>
	<tr><td colspan="3"><div id=footer><img src="/bookstore/images/all_06.jpg" width="718" height="17" alt="">
			</div></td></tr>
	
	
</table>
<!-- End ImageReady Slices -->

</body>
</html>